# $Id: Makefile,v 1.13 2004/12/22 11:25:07 sby Exp $

.include "../../include/mythbbs.mk"

CFLAGS+= -D_BBS_UTIL_C_ -I$(BBSHOME)/mythbbs/myth

.SUFFIXES: .o .c

.c:	; $(CCACHE) $(CC) -o $@ $@.c $(CFLAGS) $(LDFLAGS)

TOOL =	account poststat birth horoscope topmsg brdbm_check \
	topquery yearsold toppost toptime toplogin topipv6login topboard \
	sexcount admin bm_check toppersonal waterboard

all: 	$(TOOL)

install: $(TOOL)
	install -d $(BBSHOME)/bin/
	install -c -m 755 $(TOOL) $(BBSHOME)/bin/

clean:
	rm -fr $(TOOL) *.o *.BAK *.log *~

